package com.csist.message;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @ClassName FileMessage
 * @Description TODO
 * @Author User
 * @Date 2021/6/9 9:03
 * @ModifyDate 2021/6/9 9:03
 * @Version 1.0
 */
public class FileMessage implements Serializable {
    private static final long serialVersionUID = 1l;
    private String name;
    private String type;
    private long size;
    private byte[] content;

    public FileMessage() {
    }

    public FileMessage(String name, String type, long size, byte[] content) {
        this.name = name;
        this.type = type;
        this.size = size;
        this.content = content;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "FileMessage{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", size=" + size +
                ", content=" + Arrays.toString(content) +
                '}';
    }
}

